package cn.test;

public class Teacher extends Profession {

	public Teacher() {}
	
	public Teacher(String Tname,int Tage,String Tcontent) {
		
		super(Tname,Tage,Tcontent);

	}
	public void teaching() {
		System.out.print("亢奋的讲着");
	} 
	
public static void main(String[] args) {
	Teacher teacher=new Teacher("黄老师",30,"俄罗斯方块....");
	System.out.println(teacher);
	teacher.setAge(10);
	System.out.print("年龄为"+teacher.getAge()+"的"+teacher.getName()+"正在");
	teacher.getEat();
	System.out.println();
	System.out.print("年龄为"+teacher.getAge()+"的"+teacher.getName()+"正在");
	teacher.teaching();
	System.out.println(teacher.getContent());
	
}
	
}
